package model;

import controler.CompleteLogger;

public class Pounding extends Filter {

	public Pounding(Integer id) {
		super(id);
	}

	private Boolean activated = Boolean.FALSE;

	@Override
	public Double getPass() {
		if (isActivated()) {
			return Double.valueOf(Constants.POUNDING_FILTER);
		} else {
			return Double.valueOf(0);
		}
	}

	public void activate() {
		this.activated = Boolean.TRUE;
		CompleteLogger.getLogger().message("Pounding Activated");

	}

	public Boolean isActivated() {
		return activated;
	}

	public void deactivate() {
		this.activated = Boolean.FALSE;
		CompleteLogger.getLogger().message("Pounding Deactivated");

	}

}
